package com.czy.owner.entity;

import com.czy.owner.utils.StringUtils;

import java.util.List;

/**
 * Created by hedepu on 2017-10-31
 */

public class TextingListModel {


    /**
     * currentMileage : 15
     * orderType : inspectionOrder
     * createUserId : 0
     * orderNumber : DD201710311715305321180
     * inspectionResult : -
     * carBrandId : 520
     * constructionStopTime : 0
     * cancelUserId : 0
     * withdrawalStatus : false
     * ownerId : 31408
     * cancelFlag : false
     * userDelFlag : false
     * borrowedFlag : false
     * supWithdrawalStatus : false
     * storeNote :
     * pushUserId : 0
     * storeEmployeesId : 0
     * serviceTime : 0
     * userOrderId : 15253
     * inSettlementUserId : 0
     * ownerCarId : 11429
     * status : enable
     * orderSubType : system
     * note : 未备注
     * relateStoreId : 0
     * shippingAddressContact :
     * cancelType : owner
     * shippingAddressName :
     * freight : 0
     * orderStatus : completed
     * imageSrc : http://image.carzone.cn/parentbrand/aodi.jpg
     * delFlag : false
     * enName : undefined
     * licenseNumber : 皖A55555
     * openTime : 0
     * inSettlementTime : 0
     * chName : 奥迪A1
     * firstLetter : A
     * superUserOrderId : 0
     * superCarBrandId : 519
     * storeId : 427
     * pickStoreEmployeesId : 0
     * dispatchTime : 0
     * storeBookingNumber : 0
     * createTime : 0
     * cancelTime : 0
     * needInvoice : true
     * constructionStartTime : 0
     * shippingAddress :
     * endTime : 1509441330532
     * hasManual : true
     * payStatus : alreadyPay
     * dealWithUserId : 0
     */

    private int currentMileage;
    private String orderType;
    private String createUserId;
    private String orderNumber;
    private String inspectionResult;
    private String carBrandId;
    private String constructionStopTime;
    private String cancelUserId;
    private String withdrawalStatus;
    private String ownerId;
    private String cancelFlag;
    private String userDelFlag;
    private String borrowedFlag;
    private String supWithdrawalStatus;
    private String storeNote;
    private String pushUserId;
    private String storeEmployeesId;
    private String serviceTime;
    private String userOrderId;
    private String inSettlementUserId;
    private String ownerCarId;
    private String status;
    private String orderSubType;
    private String note;
    private String relateStoreId;
    private String shippingAddressContact;
    private String cancelType;
    private String shippingAddressName;
    private String freight;
    private String orderStatus;
    private String imageSrc;
    private boolean delFlag;
    private String enName;
    private String licenseNumber;
    private String openTime;
    private String inSettlementTime;
    private String chName;
    private String firstLetter;
    private String superUserOrderId;
    private String superCarBrandId;
    private String storeId;
    private String pickStoreEmployeesId;
    private String dispatchTime;
    private String storeBookingNumber;
    private String createTime;
    private String cancelTime;
    private boolean needInvoice;
    private String constructionStartTime;
    private String shippingAddress;
    private String endTime;
    private String hasManual;
    private String payStatus;
    private String dealWithUserId;
    private List<AbnormalModel> abnormalList;
    private String abnormalModel = "";

    public String getAbnormalModel() {
        if (abnormalList == null || abnormalList.size() < 1) {
            return "";
        }
        if (StringUtils.isEmpty(abnormalModel)) {
            for (int i = 0; i < abnormalList.size(); i++) {
                abnormalModel = abnormalModel + abnormalList.get(i).getCarInspectionName() + "、";
            }
            if (abnormalModel.length() > 1) {
                abnormalModel = abnormalModel.substring(0, abnormalModel.length() - 1);
            }
            return abnormalModel;
        } else {
            return abnormalModel;
        }

    }

    public List<AbnormalModel> getAbnormalList() {
        return abnormalList;
    }

    public void setAbnormalList(List<AbnormalModel> abnormalList) {
        this.abnormalList = abnormalList;
    }

    public void setAbnormalModel(String abnormalModel) {
        this.abnormalModel = abnormalModel;
    }

    public int getCurrentMileage() {
        return currentMileage;
    }

    public void setCurrentMileage(int currentMileage) {
        this.currentMileage = currentMileage;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getInspectionResult() {
        return inspectionResult;
    }

    public void setInspectionResult(String inspectionResult) {
        this.inspectionResult = inspectionResult;
    }

    public String getCarBrandId() {
        return carBrandId;
    }

    public void setCarBrandId(String carBrandId) {
        this.carBrandId = carBrandId;
    }

    public String getConstructionStopTime() {
        return constructionStopTime;
    }

    public void setConstructionStopTime(String constructionStopTime) {
        this.constructionStopTime = constructionStopTime;
    }

    public String getCancelUserId() {
        return cancelUserId;
    }

    public void setCancelUserId(String cancelUserId) {
        this.cancelUserId = cancelUserId;
    }

    public String getWithdrawalStatus() {
        return withdrawalStatus;
    }

    public void setWithdrawalStatus(String withdrawalStatus) {
        this.withdrawalStatus = withdrawalStatus;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public String getCancelFlag() {
        return cancelFlag;
    }

    public void setCancelFlag(String cancelFlag) {
        this.cancelFlag = cancelFlag;
    }

    public String getUserDelFlag() {
        return userDelFlag;
    }

    public void setUserDelFlag(String userDelFlag) {
        this.userDelFlag = userDelFlag;
    }

    public String getBorrowedFlag() {
        return borrowedFlag;
    }

    public void setBorrowedFlag(String borrowedFlag) {
        this.borrowedFlag = borrowedFlag;
    }

    public String getSupWithdrawalStatus() {
        return supWithdrawalStatus;
    }

    public void setSupWithdrawalStatus(String supWithdrawalStatus) {
        this.supWithdrawalStatus = supWithdrawalStatus;
    }

    public String getStoreNote() {
        return storeNote;
    }

    public void setStoreNote(String storeNote) {
        this.storeNote = storeNote;
    }

    public String getPushUserId() {
        return pushUserId;
    }

    public void setPushUserId(String pushUserId) {
        this.pushUserId = pushUserId;
    }

    public String getStoreEmployeesId() {
        return storeEmployeesId;
    }

    public void setStoreEmployeesId(String storeEmployeesId) {
        this.storeEmployeesId = storeEmployeesId;
    }

    public String getServiceTime() {
        return serviceTime;
    }

    public void setServiceTime(String serviceTime) {
        this.serviceTime = serviceTime;
    }

    public String getUserOrderId() {
        return userOrderId;
    }

    public void setUserOrderId(String userOrderId) {
        this.userOrderId = userOrderId;
    }

    public String getInSettlementUserId() {
        return inSettlementUserId;
    }

    public void setInSettlementUserId(String inSettlementUserId) {
        this.inSettlementUserId = inSettlementUserId;
    }

    public String getOwnerCarId() {
        return ownerCarId;
    }

    public void setOwnerCarId(String ownerCarId) {
        this.ownerCarId = ownerCarId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOrderSubType() {
        return orderSubType;
    }

    public void setOrderSubType(String orderSubType) {
        this.orderSubType = orderSubType;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getRelateStoreId() {
        return relateStoreId;
    }

    public void setRelateStoreId(String relateStoreId) {
        this.relateStoreId = relateStoreId;
    }

    public String getShippingAddressContact() {
        return shippingAddressContact;
    }

    public void setShippingAddressContact(String shippingAddressContact) {
        this.shippingAddressContact = shippingAddressContact;
    }

    public String getCancelType() {
        return cancelType;
    }

    public void setCancelType(String cancelType) {
        this.cancelType = cancelType;
    }

    public String getShippingAddressName() {
        return shippingAddressName;
    }

    public void setShippingAddressName(String shippingAddressName) {
        this.shippingAddressName = shippingAddressName;
    }

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getImageSrc() {
        return imageSrc;
    }

    public void setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
    }

    public boolean isDelFlag() {
        return delFlag;
    }

    public void setDelFlag(boolean delFlag) {
        this.delFlag = delFlag;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public String getLicenseNumber() {
        return licenseNumber;
    }

    public void setLicenseNumber(String licenseNumber) {
        this.licenseNumber = licenseNumber;
    }

    public String getOpenTime() {
        return openTime;
    }

    public void setOpenTime(String openTime) {
        this.openTime = openTime;
    }

    public String getInSettlementTime() {
        return inSettlementTime;
    }

    public void setInSettlementTime(String inSettlementTime) {
        this.inSettlementTime = inSettlementTime;
    }

    public String getChName() {
        return chName;
    }

    public void setChName(String chName) {
        this.chName = chName;
    }

    public String getFirstLetter() {
        return firstLetter;
    }

    public void setFirstLetter(String firstLetter) {
        this.firstLetter = firstLetter;
    }

    public String getSuperUserOrderId() {
        return superUserOrderId;
    }

    public void setSuperUserOrderId(String superUserOrderId) {
        this.superUserOrderId = superUserOrderId;
    }

    public String getSuperCarBrandId() {
        return superCarBrandId;
    }

    public void setSuperCarBrandId(String superCarBrandId) {
        this.superCarBrandId = superCarBrandId;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getPickStoreEmployeesId() {
        return pickStoreEmployeesId;
    }

    public void setPickStoreEmployeesId(String pickStoreEmployeesId) {
        this.pickStoreEmployeesId = pickStoreEmployeesId;
    }

    public String getDispatchTime() {
        return dispatchTime;
    }

    public void setDispatchTime(String dispatchTime) {
        this.dispatchTime = dispatchTime;
    }

    public String getStoreBookingNumber() {
        return storeBookingNumber;
    }

    public void setStoreBookingNumber(String storeBookingNumber) {
        this.storeBookingNumber = storeBookingNumber;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(String cancelTime) {
        this.cancelTime = cancelTime;
    }

    public boolean isNeedInvoice() {
        return needInvoice;
    }

    public void setNeedInvoice(boolean needInvoice) {
        this.needInvoice = needInvoice;
    }

    public String getConstructionStartTime() {
        return constructionStartTime;
    }

    public void setConstructionStartTime(String constructionStartTime) {
        this.constructionStartTime = constructionStartTime;
    }

    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getHasManual() {
        return hasManual;
    }

    public void setHasManual(String hasManual) {
        this.hasManual = hasManual;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public String getDealWithUserId() {
        return dealWithUserId;
    }

    public void setDealWithUserId(String dealWithUserId) {
        this.dealWithUserId = dealWithUserId;
    }

    public static class AbnormalModel {
        private String carInspectionName;
        private int carInspectionId;

        public String getCarInspectionName() {
            return carInspectionName;
        }

        public void setCarInspectionName(String carInspectionName) {
            this.carInspectionName = carInspectionName;
        }

        public int getCarInspectionId() {
            return carInspectionId;
        }

        public void setCarInspectionId(int carInspectionId) {
            this.carInspectionId = carInspectionId;
        }
    }
}
